package com.dancw.user.web.index.fade;

import com.dancw.user.web.common.ResultWarp;
import com.dancw.user.web.index.model.IndexModel;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 但成王
 * @create 2018-10-30 23:52
 */
@Service
public class IndexFade {

    public ResultWarp getList () {

        ResultWarp resultWarp = new ResultWarp();
        List<Map<String,String>> swiperList = new ArrayList<>();
        Map<String,String> map = new HashMap<>();
        map.put("id", "0001");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1809/47/7599053a2cb2ee02.jpg_750x200_c61be0c1.jpg");
        swiperList.add(map);
        map = new HashMap<>();
        map.put("id", "0002");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1809/31/da037478f37cf202.jpg_750x200_a02cf862.jpg");
        swiperList.add(map);
        map = new HashMap<>();
        map.put("id", "0003");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1809/47/7599053a2cb2ee02.jpg_750x200_c61be0c1.jpg");
        swiperList.add(map);

        List<Map<String,String>> iconList = new ArrayList<>();
        map = new HashMap<>();
        map.put("id", "0001");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1803/95/f3dd6c383aeb3b02.png");
        map.put("desc", "景点门票,景点门票");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0002");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1804/ff/fdf170ee89594b02.png");
        map.put("desc", "北京必游");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0003");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1804/5a/13ceb38dcf262f02.png");
        map.put("desc", "一日游");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0004");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1803/20/831d62d2e1c7be02.png");
        map.put("desc", "文化古迹");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0005");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1803/76/eb88861d78fb9902.png");
        map.put("desc", "动植物园");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0006");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1803/6c/9e54a8540fee0102.png");
        map.put("desc", "故宫");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0007");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1803/47/c2b659e048b11602.png");
        map.put("desc", "野生动物园");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0008");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1803/ab/6f7d6e44963c9302.png");
        map.put("desc", "泡温泉");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0009");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1804/ff/fdf170ee89594b02.png");
        map.put("desc", "北京必游");
        iconList.add(map);
        map = new HashMap<>();
        map.put("id", "0010");
        map.put("imgUrl", "http://img1.qunarzz.com/piao/fusion/1804/ff/fdf170ee89594b02.png");
        map.put("desc", "北京必游");
        iconList.add(map);

        List<Map<String,String>> recommendList = new ArrayList<>();
        map = new HashMap<>();
        map.put("id", "0001");
        map.put("imgUrl", "http://img1.qunarzz.com/sight/p0/1507/36/ce3d2d6c9ab44d67ae68d940b8781829.water.jpg_200x200_0938a8f2.jpg");
        map.put("title", "太平洋海底世界");
        map.put("desc", "浪漫大连首站，浪漫海洋主题乐园");
        recommendList.add(map);
        map = new HashMap<>();
        map.put("id", "0002");
        map.put("imgUrl", "http://img1.qunarzz.com/sight/p0/1507/36/ce3d2d6c9ab44d67ae68d940b8781829.water.jpg_200x200_0938a8f2.jpg");
        map.put("title", "太平洋海底世界");
        map.put("desc", "浪漫大连首站，浪漫海洋主题乐园");
        recommendList.add(map);
        map = new HashMap<>();
        map.put("id", "0003");
        map.put("imgUrl", "http://img1.qunarzz.com/sight/p0/1507/36/ce3d2d6c9ab44d67ae68d940b8781829.water.jpg_200x200_0938a8f2.jpg");
        map.put("title", "太平洋海底世界");
        map.put("desc", "浪漫大连首站，浪漫海洋主题乐园");
        recommendList.add(map);

        List<Map<String,String>> weekendList = new ArrayList<>();
        map = new HashMap<>();
        map.put("id", "0001");
        map.put("imgUrl", "http://img1.qunarzz.com/sight/source/1509/81/0412da9c4db66a.jpg_r_640x214_8e23871e.jpg");
        map.put("title", "登高望远秋色佳");
        map.put("desc", "山顶满眼彩色，此情此景醉了");
        weekendList.add(map);
        map = new HashMap<>();
        map.put("id", "0002");
        map.put("imgUrl", "http://img1.qunarzz.com/sight/source/1509/81/0412da9c4db66a.jpg_r_640x214_8e23871e.jpg");
        map.put("title", "太平洋海底世界");
        map.put("desc", "浪漫大连首站，浪漫海洋主题乐园");
        weekendList.add(map);
        map = new HashMap<>();
        map.put("id", "0003");
        map.put("imgUrl", "http://img1.qunarzz.com/sight/source/1509/81/0412da9c4db66a.jpg_r_640x214_8e23871e.jpg");
        map.put("title", "太平洋海底世界");
        map.put("desc", "太平洋海底世界");
        weekendList.add(map);

        IndexModel indexModel = new IndexModel(swiperList,iconList,recommendList,weekendList);
        resultWarp.setData(indexModel);
        resultWarp.setRet(true);
        return resultWarp;
    }


}
